Developer Documentation

QuickTime 4 API Documentation

QuickTime 4 Reference

| Previous | Chapter Contents | Chapter Top | Next |

Initializing Your Decompressor Component

The first function call that your image decompressor component receives from the base image decompressor is always a call to ImageCodecInitialize . In response to this call, your image decompressor component returns an ImageSubCodecDecompressCapabilities structure that specifies its capabilities. This structure contains the following fields:

With the help of the base image decompressor, any image decompressor that uses only interrupt-safe calls for decompression operations can support asynchronous decompression.

Listing 2 shows how to specify that a decompressor supports asynchronous decompression operations.

Listing 2 Specifying the capabilities of a decompressor component

ImageSubCodecDecompressCapabilities deccap;
ImageSubCodecDecompressRecord decrec;

deccap->decompressRecordSize = sizeof(decrec);
deccap->canAsync = true;

© 1999 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |